package pri.hillchen.std.springboot.shiro.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import pri.hillchen.std.springboot.shiro.entity.User;
import pri.hillchen.std.springboot.shiro.mapper.UserMapper;
import pri.hillchen.std.springboot.shiro.service.UserService;

/**
 * Created by hillchen on 2017/9/28 0028.
 */
@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserMapper userMapper;
    @Override
    public User findUserByUserName(String userName) {
        User user = new User();
        user.setUsername(userName);
        return userMapper.selectOne(user);
    }
}
